//
// Maths.hpp for  in /home/goldbe_y//cpp/Maths/209ajust
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Sat Jun 11 17:12:59 2011 yoni goldberg
// Last update Wed Jun 22 17:33:02 2011 yoni goldberg
//

#ifndef __MATHS2_H__
# define __MATHS2_H__

#include <iostream>
#include <vector>
#include <cstdlib>
#include <complex>
#include <string>
#include <fstream>
#include <sstream>

class Maths2
{
public:
  Maths2(std::vector<float>, std::vector<float>);
  ~Maths2();

  int			readfile();
  std::string		Khi();

private:
  void		affTab(std::vector<float> & tab);
  void		Moyenne();
  void		Probabilite();
  void		Calc();

  bool			find();
  void			regroup();
  double		cnn(int nb1, int nb2);

  std::vector<float> x;
  std::vector<std::string> table;
  std::vector<float> Ox;
  std::vector<float> Tx;
  std::vector<float> Tx2;
  std::vector<float> Tx3;
  int		total;
  float		moy;
  float		prob;
  float		prob2;
  float		prob3;
  float		khi;
  float		khi2;
  float		khi3;

  std::vector<std::vector< std::string> >	table_khi;
};


#endif /* !__MATHS_H__ */
